package com.paisheng.justlife.appliction;

import android.app.Application;
import android.content.Context;

import com.paisheng.justlife.utils.SerialPortUtils;
import com.paisheng.justlife.utils.SharedPreferencesHelper;

public class MyApplication extends Application {
    public SerialPortUtils serialPortUtils;
    public SharedPreferencesHelper spfh;
    public static Context context = null;

    @Override
    public void onCreate() {
        super.onCreate();
        spfh = new SharedPreferencesHelper(this, "CAST_MESSAGE");
        spfh.clear();
        serialPortUtils = new SerialPortUtils();
        serialPortUtils.openSerialPort();

    }
}
